﻿using AppSocketModel;
using BCGPSCommon;
using System;
using System.Collections.Generic;

namespace AppSocketService.Device
{
    public interface IDeviceService
    {
        List<DeviceDto> InitRedisGetAll();
        void Login(DeviceDto deviceDto); 
        void UpdateLastDataTime(string imei, DateTime lastDataServerTime);
        void UpdateGpsDataValidCount(string imei, bool isValid,string locationType);


        #region use api

        DeviceDto Get(string imei);
        PageableList<DeviceDto> GetList(string imei,bool desc, int index, int size);
        DeviceDto ResetCount(string imei);
        #endregion
    }
}